import request from '@/utils/request'

// 查询首信易进件列表
export function listPayEase(query) {
  return request({
    url: '/ecs/payEase/list',
    method: 'get',
    params: query
  })
}

//查询首信易业务分类列表
export function payEaseClassificationList(query) {
  return request({
    url: '/ecs/payEase/payEaseClassificationList',
    method: 'get',
    params: query
  })
}
//查询首信易职业列表
export function payEaseCareerList(query) {
  return request({
    url: '/ecs/payEase/payEaseCareerList',
    method: 'get',
    params: query
  })
}



// 查询首信易进件详细
export function getPayEase(id) {
  return request({
    url: '/ecs/payEase/' + id,
    method: 'get'
  })
}

// 新增首信易进件
export function addPayEase(data) {
  return request({
    url: '/ecs/payEase',
    method: 'post',
    data: data
  })
}

// 修改首信易进件
export function updatePayEase(data) {
  return request({
    url: '/ecs/payEase',
    method: 'put',
    data: data
  })
}
export function editFeeRate(data) {
  return request({
    url: '/ecs/payEase/editFeeRate',
    method: 'put',
    data: data
  })
}


// 删除首信易进件
export function delPayEase(id) {
  return request({
    url: '/ecs/payEase/' + id,
    method: 'delete'
  })
}


// 查询首信易进件列表
export function getCity(query) {
  return request({
    url: '/ecs/payEase/getCity',
    method: 'get',
    params: query
  })
}
export function incoming(query) {
  return request({
    url: '/ecs/payEase/incoming',
    method: 'put',
    data: query
  })
}

export function payEaseBank(query) {
  return request({
    url: '/ecs/payEase/payEaseBank',
    method: 'get',
    params: query
  })
}

// 查询首信易进件详细
export function queryDetail(id) {
  return request({
    url: '/ecs/payEase/queryDetail/' + id,
    method: 'get'
  })
}





